//本地路由配置
const dynamicLocalRoutes = [
  {
    "name": "System",
    "path": "system",
    "component": "/views/Layout.vue",
    "meta": {
      "title": "系统管理",
      "icon": "Setting",
      "keepAlive": true,
      "query": null,
      "isFrame": true,
      "isCache": true,
      "menuType": "M",
      "visible": true,
      "status": "0",
      "perms": null,
      "remark": ""
    },
    "children": [
      {
        "name": "Dashboard",
        "path": "dashboard",
        "component": "/views/examples/Dashboard.vue",
        "meta": {
          "title": "控制面板",
          "icon": "DataBoard",
          "keepAlive": true,
          "query": null,
          "isFrame": false,
          "isCache": true,
          "menuType": "C",
          "visible": true,
          "status": "0",
          "perms": null,
          "remark": ""
        },
        "children": []
      },
      {
        "name": "Dept",
        "path": "dept",
        "component": "/views/system/dept/index.vue",
        "meta": {
          "title": "部门管理",
          "icon": "HomeFilled",
          "keepAlive": true,
          "query": null,
          "isFrame": false,
          "isCache": true,
          "menuType": "C",
          "visible": true,
          "status": "0",
          "perms": null,
          "remark": ""
        },
        "children": []
      },
      {
        "name": "Role",
        "path": "role",
        "component": "/views/system/role/index.vue",
        "meta": {
          "title": "角色管理",
          "icon": "View",
          "keepAlive": true,
          "query": null,
          "isFrame": false,
          "isCache": true,
          "menuType": "C",
          "visible": true,
          "status": "0",
          "perms": null,
          "remark": ""
        },
        "children": []
      },
      {
        "name": "Auth",
        "path": "auth",
        "component": "/views/system/auth/index.vue",
        "meta": {
          "title": "权限管理",
          "icon": "Key",
          "keepAlive": true,
          "query": null,
          "isFrame": false,
          "isCache": true,
          "menuType": "C",
          "visible": true,
          "status": "0",
          "perms": null,
          "remark": ""
        },
        "children": []
      },
      {
        "name": "SysMenu",
        "path": "menu",
        "component": "/views/system/menu/index.vue",
        "meta": {
          "title": "菜单管理(dev)",
          "icon": "Menu",
          "keepAlive": true,
          "query": null,
          "isFrame": false,
          "isCache": true,
          "menuType": "C",
          "visible": true,
          "status": "0",
          "perms": null,
          "remark": ""
        },
        "children": []
      },
      {
        "name": "Dict",
        "path": "dict",
        "component": "/views/system/dict/index.vue",
        "meta": {
          "title": "字典管理",
          "icon": "Memo",
          "keepAlive": true,
          "query": null,
          "isFrame": false,
          "isCache": true,
          "menuType": "C",
          "visible": true,
          "status": "0",
          "perms": null,
          "remark": ""
        },
        "children": []
      },
      {
        "name": "User",
        "path": "user",
        "component": "/views/system/user/index.vue",
        "meta": {
          "title": "用户管理(dev)",
          "icon": "User",
          "keepAlive": true,
          "query": null,
          "isFrame": false,
          "isCache": true,
          "menuType": "C",
          "visible": true,
          "status": "0",
          "perms": null,
          "remark": ""
        },
        "children": []
      },
      {
        "name": "Setting",
        "path": "setting",
        "component": "/views/system/setting/index.vue",
        "meta": {
          "title": "系统设置",
          "icon": "SetUp",
          "keepAlive": true,
          "query": null,
          "isFrame": false,
          "isCache": true,
          "menuType": "C",
          "visible": true,
          "status": "0",
          "perms": null,
          "remark": ""
        },
        "children": []
      }
    ]
  },
  {
    "name": "Devops",
    "path": "devops",
    "component": "/views/Layout.vue",
    "meta": {
      "title": "运维管理",
      "icon": "Setting",
      "keepAlive": true,
      "query": null,
      "isFrame": true,
      "isCache": true,
      "menuType": "M",
      "visible": true,
      "status": "0",
      "perms": null,
      "remark": ""
    },
    "children": [
      {
        "name": "LoginLog",
        "path": "loginLog",
        "component": "/views/system/loginLog/index.vue",
        "meta": {
          "title": "登录日志",
          "icon": "Promotion",
          "keepAlive": true,
          "query": null,
          "isFrame": false,
          "isCache": true,
          "menuType": "C",
          "visible": true,
          "status": "0",
          "perms": null,
          "remark": ""
        },
        "children": []
      },
      {
        "name": "OperLog",
        "path": "operLog",
        "component": "/views/system/operLog/index.vue",
        "meta": {
          "title": "操作日志",
          "icon": "DataAnalysis",
          "keepAlive": true,
          "query": null,
          "isFrame": false,
          "isCache": true,
          "menuType": "C",
          "visible": true,
          "status": "0",
          "perms": null,
          "remark": ""
        },
        "children": []
      },
      {
        "name": "FormDesign",
        "path": "fromDesign",
        "component": "/views/system/formDesign/index.vue",
        "meta": {
          "title": "表单设计",
          "icon": "Document",
          "keepAlive": true,
          "query": null,
          "isFrame": false,
          "isCache": true,
          "menuType": "C",
          "visible": true,
          "status": "0",
          "perms": null,
          "remark": ""
        },
        "children": []
      },
      {
        "name": "",
        "path": "https://www.baidu.com",
        "component": "",
        "meta": {
          "title": "数据监控",
          "icon": "Document",
          "keepAlive": false,
          "query": null,
          "isFrame": false,
          "isCache": false,
          "menuType": "C",
          "visible": true,
          "status": "0",
          "perms": null,
          "remark": ""
        },
        "children": []
      }
    ]
  }
]

export const getDynamicLocalRoutes = () => {
  try {
    //深度拷贝
    return JSON.parse(JSON.stringify(dynamicLocalRoutes));
  } catch (e) {
    console.error(e)
    return []
  }
}
